package com.yifang.yibingproject.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel("菜单树型DTO")
public class SysMenuTreeDTO {
    @ApiModelProperty("id")
    private Long id;

    @NotBlank
    @ApiModelProperty("父级目录ID，根目录root")
    private String parentId;

    @ApiModelProperty("同层级下（parentId）的排序")
    private Integer sortIndex;

    @NotBlank
    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("路径名称")
    private String name;

    @NotBlank
    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("菜单导航组件路径")
    private String componentPath;

    @ApiModelProperty("是否隐藏")
    private Boolean hidden;

    @ApiModelProperty("子分类")
    private List<SysMenuTreeDTO> children;
}
